package com.ce.pms.log4ce;

import java.util.Map;

import org.aspectj.lang.JoinPoint;

import com.ce.component.log4ce.aop.constructor.support.AbstractBizDescriptionHandler;
import com.ce.component.log4ce.aop.constructor.support.OriginalObjectHolder;
import com.ce.component.log4ce.aop.parser.BizLogParser;
import com.ce.pms.house.vo.FlatVO;

public class HouseDeleteHandler extends AbstractBizDescriptionHandler
{

	@Override
	public Map<String, Object> getNamedParametersMap(JoinPoint joinPoint, Object returnValue, BizLogParser logParser)
	{
		Map<String,Object> map = logParser.getLogArguments(joinPoint);

		FlatVO flatvo =  (FlatVO)OriginalObjectHolder.ORIGINAL_OBJECTS.get().get("houseToDeleteInfo");
		map.put("houseNumber", flatvo.getHouseNumber());
		map.put("houseType", flatvo.getHousePlanName());
		map.put("standard", flatvo.getDeliveryLimitationName());
		map.put("buildSize", flatvo.getBuildSize());
		map.put("innerSize", flatvo.getInnerSize());
		map.put("publicSize", flatvo.getPublicSize());
		map.putAll(logParser.getLogStaticContents(joinPoint));
		return map;
	}

}
